package com.czf.CurriculumVitae.bean;

import java.io.Serializable;
import java.util.Objects;
import java.util.UUID;

/**
 * @author chen
 * @Description: 用户登录bean
 * @date 2021/3/25 10:50
 */
public class Admin {

    private String id;

    private String username;

    private String password;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Admin admin = (Admin) o;
        return id == admin.id && username.equals(admin.username) && password.equals(admin.password);
    }


    @Override
    public int hashCode() {
        return Objects.hash(id, username, password);
    }

    public Admin(){}

    public Admin(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Admin(String id,String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }
}
